<template>
  <div class="orders-container">
    <h2>销售订单管理</h2>
    <!-- 添加订单管理内容 -->
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import axios from 'axios'

const orders = ref([])

onMounted(async () => {
  try {
    const response = await axios.get('/api/sales/orders')
    orders.value = response.data
  } catch (error) {
    console.error('获取订单数据失败:', error)
  }
})
</script>

<style scoped>
.orders-container {
  padding: 20px;
}
</style>